public class detail {
    public static void main(String[] args) {
        double num1=2.7;
        double num2=8.1 / 3;
//        对于运算结果是小数的值进行相等判断时，要小心
        if (num1 == num2){
            System.out.println("相等");
        }else if (Math.abs(num1 - num2)< 0.000001){
            System.out.println("差值非常小");
        }

        char c='a';
        System.out.println((int) c);
        System.out.println(c + 10);
    }
}
